<?php
/**
 * 公用头部元素
 * auth wangyong add
 * 20009-08-21
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="JavaScript" type="text/javascript" src="/emall/start/js/jquery.js"></script>
<script language="JavaScript" type="text/javascript" src="/emall/start/js/tab.js"></script>
<link type="text/css" rel="stylesheet" href="/emall/start/css/header.css">
<link type="text/css" rel="stylesheet" href="/emall/start/css/public.css">
<?php $this->_block('css'); ?>
<?php $this->_endblock(); ?>
<?php $this->_block('js'); ?>
<?php $this->_endblock(); ?>
<title><?php $this->_block('title'); ?><?php $this->_endblock(); ?></title>
</head>
<body>
<?php if(isset($typeid)){ ?>
<script type="text/javascript" >
$(function(){
<?php if(isset($store) && ($store == 'storelist')){ ?>	
	$('#tags > li').removeClass('selectTag');
	$('#tags > li').next().addClass('selectTag');
	$('#tagContent0').hide();
	$('#tagContent1').show();
<?php if($typeid == 1){ ?>
    $('#tagContent1  select > option').next().attr('selected','selected');
<?php  } ?>
<?php  }else{ ?>
<?php if($typeid == 1){ ?>
	$('#tagContent0  select > option').next().attr('selected','selected');
<?php  }} ?>
})
</script>
<?php  } ?>
<div class="body">
    <div class="main"><!--header start -->
        <div class="part">
            <div class="mini">
                <div>家居设计、采购、施工全程解决平台!</div>
			    <div class="span_R">
                    <ul>
<?php if(isset($_SESSION['user_name'])){?>
		                <li class="hello">您好！</li>
		                <li><a href="/emall/start/myspace"><?php echo $_SESSION['user_name']; ?></a></li>
		                <li><a href="/system/start/Login/Logout">&nbsp;&nbsp;注销</a></li>
<?php  }else {?>
	                    <li><a href="/system/start/register">注册</a>&nbsp;/&nbsp;<a href="/system/start/Login">登录</a></li>
<?php  }?>
						<li><a href="/discuz" target="_blank"><img src="/emall/start/images/mini2.gif" align="absbottom" />&nbsp;网站论坛</a></li>
						<li><a href="<?php echo $_BASE_DIR;?>Mycart/list"><img src="/emall/start/images/mini3.gif" align="absbottom" />&nbsp;购物车</a></li>
<?php if(isset($_SESSION['user_id'])){?>
						<li><a href="javascript:;"><img src="/emall/start/images/mini4.gif" align="absbottom" />&nbsp;用户中心<img src="/emall/start/images/mini5.gif" align="absmiddle" /></a></li>
<?php  }?>
                    </ul>
                </div>
<?php if(isset($_SESSION['user_id'])){?>
				<div class="mydecoration">
					<ul>
                        <li><a target="_blank" href="/myhome/start/default/userindex/user/<?php echo $_SESSION['user_id']; ?>">我的空间</a></li>
						<li><a target="_blank" href="/emall/start/myspace">我的装联</a></li>
						<li><a target="_blank" href="/emall/start//helpinfo/helplist">帮助中心</a></li>
					</ul>
                </div>
<?php  }?>
        </div>
		<div class="logo"><a href="/"><img src="/emall/start/images/logo.jpg" /></a></div>
		<!--logoright start -->
		<div class="logoright"><!--search start  -->
			<div id=con>
				<ul id=tags>
					<li class=selectTag><a onclick="selectTag('tagContent0',this)" href="javascript:void(0)">商 品</a></li>
					<li><a onclick="selectTag('tagContent1',this)" href="javascript:void(0)">店 铺</a></li>
					<!-- <li><a onclick="selectTag('tagContent2',this)" href="javascript:void(0)">装修公司</a></li>-->
				</ul>
				<div id=tagContent><!--商品的search start -->
					<div class="tagContent  selectTag" id=tagContent0>
						<div class="search">
						    <div class="searchleft"></div>
							<div class="searchcont">
								<ul>
									<li><span class="type"> <select style="margin: -1px">
										<option value='0'>商品名称</option>
										<option value='1'>商品品牌</option>
									</select> </span></li>
									<li><input type="text" name="goodssearch" id="goodssearch" /></li>
									<li><a href="javascript:;"><img src="/emall/start/images/seachbtn.gif" /></a></li>
								</ul>
							</div>
						    <div class="searchright"></div>
						</div>
					</div>
					<!--商品的search end --> <!--店铺的search start -->
					<div class="tagContent" id=tagContent1>
						<div class="search">
						    <div class="searchleft"></div>
							<div class="searchcont">
								<ul>
									<li><span class="type"> 
										<select style="margin: -1px">
											<option value='2'>店铺名称</option>
											<option value='3'>店铺分类</option>
										</select> </span>
									</li>
									<li><input type="text" name="storesearch" id="storesearch" /></li>
									<li><a href="javascript:;"><img src="/emall/start/images/seachbtn.gif" /></a></li>
								</ul>
							</div>
						    <div class="searchright"></div>
						</div>
					</div>
					<!--店铺的search end --> <!--装修公司的search start -->
					<div class=tagContent id=tagContent2>
						<div class="search">
						    <div class="searchleft"></div>
							<div class="searchcont">
								<ul>
								    <li>
									   <span class="type">
									   <select style="margin: -1px">
										<option value='4'>装修公司</option>
										</select> </span></li>
									<li><input type="text" name="textfield" id="textfield" /></li>
									<li><a href="#"><img src="/emall/start/images/seachbtn.gif" /></a></li>
								</ul>
							</div>
						    <div class="searchright"></div>
						</div>
					</div>
				    <!--装修公司的search end -->
				</div>
			</div>
		    <!--search end -->
		</div>
        <!--logoright end -->
    </div>
	<!--header end -->
	<div class="spaceh"></div>